﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HZY.Logic.Core
{
    using Microsoft.Extensions.DependencyInjection;
    using HZY.Logic.Sys;

    public static class LogicExtensions
    {
        /// <summary>
        /// 注入 Logic 服务
        /// </summary>
        /// <param name="services"></param>
        /// <returns></returns>
        public static IServiceCollection UseLogicServices(this IServiceCollection services)
        {

            //注入 业务 服务

            //base
            services.AddScoped<AccountLogic>();
            services.AddScoped<CreateCodeToolsLogic>();
            services.AddScoped<Sys_AppLogLogic>();
            services.AddScoped<Sys_FunctionLogic>();
            services.AddScoped<Sys_MenuLogic>();
            services.AddScoped<Sys_RoleLogic>();
            services.AddScoped<Sys_RoleMenuFunctionLogic>();
            services.AddScoped<Sys_UserLogic>();
            //


            return services;
        }




    }
}
